import http from "./request.ts"
// home/advertise/{id} 获取广告详情
export const homeAdvertiseListById = (id: number): RES<updateAdvertiseListModel> => http.get(`/home/advertise/${id}`)
// /home/advertise/update/{id} 修改广告
export const advertiseUpdateStatus = (params: { id: number, status: number }): RES<any> => http.post(`/home/advertise/update/status/${params.id}?status=${params.status}`)
// home/advertise/create 添加广告
export const advertiseCreate = (params: updateAdvertiseListModel): RES<IStatusRes> => http.post(`home/advertise/create`, params)


